import yagmail

def send_email():
    email=yagmail.SMTP(user='3369588519@qq.com',password='nmwzsytvaszxdbgf',host='SMTP.qq.com')
    email.send(to='3369588519@qq.com',subject='测试报告',contents='关于自动化测试',attachments=['baogao.html'])